#include <iostream>
using namespace std;

int main()
{
	int n;
	cin >> n;
	/*
	等价于:
		if (n == 1)
			cout << "Monday" << endl;
		else if (n == 2)
			cout << "Tuesday" << endl;
		else if (n == 3)
			cout << "Wednesday" << endl;
		else if (n == 4)
			cout << "Thursday" << endl;
		else if (n == 5)
			cout << "Friday" << endl;
		else if (n == 6)
			cout << "Saturday" << endl;
		else if (n == 7)
			cout << "Sunday" << endl;
		else
			cout << "What The FUCK???" << endl;
	*/
	switch (n)
	{
	case 1:
		cout << "Monday" << endl;
		break;
	case 2:
		cout << "Tuesday" << endl;
		break;
	case 3:
		cout << "Wednesday" << endl;
		break;
	case 4:
		cout << "Thursday" << endl;
		break;
	case 5:
		cout << "Friday" << endl;
		break;
	case 6:
		cout << "Saturday" << endl;
		break;
	case 7:
		cout << "Sunday" << endl;
		break;
	default:
		cout << "What The FUCK???" << endl;
		break;
	}
}